#include"tcp_server.hpp"

void usage(std::string proc)
{
    std::cout << "\nUsage" << proc << "port" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        usage(argv[0]);
        exit(-1);
    }

    
    TcpServer server(htons(uint16_t(argv[1])));
    server.InitServer();
    server.Start();
    return 0;
}